#if !defined(AFX_DLGAUDIOCONFIG_H__7E20037E_33DF_44D0_AFE9_4C864CDCBAF1__INCLUDED_)
#define AFX_DLGAUDIOCONFIG_H__7E20037E_33DF_44D0_AFE9_4C864CDCBAF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgAudioConfig.h : header file
//

#include "DlgBCMultiLan.h"
#include "CJFlatComboBox.h"
#include "Resource.h"
#include "bitmapbuttonex.h"
/////////////////////////////////////////////////////////////////////////////
// CDlgAudioConfig dialog

class CDlgAudioConfig : public CDialogMultiLan
{
// Construction
public:
	virtual void LoadLanguage(BOOL bRead);
	virtual void OnCancel();
	virtual void OnOK();
	BOOL StartAudioPlayDevices();
	BOOL StartAudioCapDevices();
	void StartAudioDevices();
	void SaveConfig();
	void LoadConfig();
	CDlgAudioConfig(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgAudioConfig)
	enum { IDD = IDD_DLG_AUDIOCONFIG };
	CButton	m_chkAutoVolume;
	CCJFlatComboBox	m_cbAGCTemp;
	CCJFlatComboBox	m_cbDenoiseTemp;
	CButton	m_chkAGC;
	CSliderCtrl	m_sliderFEC;
	CButton	m_chkAEC;
	CButton	m_chkASC;
	CButton	m_chkDeNoise;
	CButton	m_cbPlayLocal;
	CCJFlatComboBox	m_cbAudioPlayer;
	CCJFlatComboBox	m_cbAudioCapturer;
	CCJFlatComboBox   m_cbAudioFormat;
	CBitmapButtonEx m_btnTestAudio;
	//}}AFX_DATA
	BOOL    m_bHasAudio;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgAudioConfig)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CDlgAudioConfig)
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnRadioAutoFEC();
	afx_msg void OnRadioManual();
	afx_msg void OnSelchangeComboAudioCapturer();
	afx_msg void OnSelchangeComboAudioPlayer();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnBtnTest();
	void ChangeTestBtn();
private:
	CBrush m_bruBkgnd;
protected:
	CToolTipCtrl m_tt;

	int m_nCurrAudioCaptureDC;
	int m_nCurrAudioPlayDC;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGAUDIOCONFIG_H__7E20037E_33DF_44D0_AFE9_4C864CDCBAF1__INCLUDED_)
